import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * 项目名称：wangxu
 * 类 名 称：HJ97
 * 描 述：HJ97 记负均正
 * 创建时间：2023/3/23 10:23 上午
 * 创 建 人：wang-xu
 */
public class HJ97 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()){
            int n = in.nextInt();
            //正整数集合
            List<Integer> numList = new ArrayList<>();
            //负整数集合
            List<Integer> minusNumList = new ArrayList<>();
            for (int i = 0; i < n; i++) {
                int nums = in.nextInt();
                if (nums > 0){
                    numList.add(nums);
                }
                if (nums < 0){
                    minusNumList.add(nums);
                }
            }
            // 输出负整数集合的大小
            StringBuilder sb = new StringBuilder();
            sb.append(minusNumList.size()).append(" ");
            // 输出正整数集合的平均值
            if (numList.size() == 0){
                sb.append(0.0);
            }else {
                // 计算正整数的平均大小
                int sum = 0;
                for (Integer i:numList) {
                    sum += i;
                }
                double avg = sum*1.0/numList.size();
                String avgStr = String.format("%.1f", avg);
                sb.append(avgStr);
            }
            System.out.println(sb.toString());
        }
    }
}
